<script>
	export default {
		onLaunch() {
			wx.getSystemInfo({
				success: (res) => {
					this.globalData.windowWidth = res.windowWidth
					this.globalData.statusBarHeight = res.statusBarHeight
					this.globalData.navBarHeight = 44 + res.statusBarHeight
				}
			})
			this.globalData.capsule = wx.getMenuButtonBoundingClientRect() //获取胶囊宽高及位置
		},
		globalData: {
			capsule: null,
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>